module.exports={
    clear(id,remark){
        return request({
            url: `/alarm/${id}/clear`,
            headers: {'Content-Type': 'application/x-www-form-urlencoded'},
            method: 'put',
            data: 'remark='+remark
        });
    },
    confirm(id,remark){
        return request({
            url: `/alarm/${id}/confirm`,
            headers: {'Content-Type': 'application/x-www-form-urlencoded'},
            method: 'put',
            data: 'remark='+remark
        });
    },
    list(data){
        return request({
            url: '/alarm/list',
            headers: {},
            method: 'get',
            params: data
        });
    },
    listByDeviceId(data){
        return request({
            url: `/alarm/list-by-device-id`,
            headers: {},
            method: 'get',
            params: data
        });
    }
}
